package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;

public interface WmChannelService extends IService<WmChannel> {

    /**
     * 查询所有频道
     * @return
     */
    ResponseResult channels();

    /**
     * 保存频道
     * @param wmChannel
     * @return
     */
    ResponseResult channelSave(WmChannel wmChannel);

    /**
     * 频道名称模糊分页查询
     * @param dto
     * @return
     */
    ResponseResult findList(WmChannelDto dto);

    /**
     * 修改频道
     * @param wmChannel
     * @return
     */
    ResponseResult channeelUpdate(WmChannel wmChannel);

    /**
     * 删除频道
     * @param id
     * @return
     */
    ResponseResult delete(Integer id);
}